﻿namespace MultipleMonitorVideo.ViewModels
{
    using System.Collections.Generic;
    using System.Windows.Input;
    using Utilities;
    using Screen = System.Windows.Forms.Screen;

    public class BaseControlViewModel : ViewModel
    {
        private Screen selectedScreen;
        
        public BaseControlViewModel()
        {
            this.Screens = ScreenManager.GetScreens();
            this.selectedScreen = ScreenManager.GetSecondaryScreen();
            this.SelectMonitorCommand = new ActionCommand(this.SelectMonitor, () => true);
        }

        public IList<Screen> Screens
        {
            get;
            private set;
        }

        public Screen SelectedScreen
        {
            get
            {
                return this.selectedScreen;
            }

            set
            {
                if (!this.selectedScreen.Equals(value))
                {
                    this.selectedScreen = value;
                    this.NotifyOfPropertyChange();
                }
            }
        }

        public ICommand SelectMonitorCommand
        {
            get;
            private set;
        }

        private void SelectMonitor()
        {
        }
    }
}
